﻿CREATE TRIGGER UsersCommittees_Tracking_Delete
ON [dbo].[UsersCommittees] 
AFTER delete
AS 
BEGIN
	UPDATE Sync.UsersCommittees_Tracking 
	SET LastUpdatedDate  = getdate(),
		IsDeleted = 1
	FROM Sync.UsersCommittees_Tracking s JOIN DELETED i
    ON s.CommitteeID = i.CommitteeID AND s.UserID = i.UserID
END














